package org.simple.framework.data.jpa.entity;

import lombok.Data;
import org.simple.framework.data.entity.Identifiable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * 项目名称：simple-framework
 * 类名称：AssignableIdEntity
 * 类描述：不自动生成主键的实体
 * 创建时间：2018/8/15
 *
 * @author sisyphus   (E-mail:1620657419@qq.com)
 * @version v1.0
 */
@Data
@MappedSuperclass
public abstract class AssignableIdEntity<ID extends Serializable> implements Identifiable<ID> {

    @Id
    @Column(name = "ID", length = 128)
    protected ID id;

}
